package org.linlinjava.litemall.wx.web;

import io.swagger.annotations.ApiModel;
import org.linlinjava.litemall.wx.annotation.LoginUser;
import org.linlinjava.litemall.wx.dto.RentNotReturnDto;
import org.linlinjava.litemall.wx.service.WxRentNotReturnService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;

/**
 * @author Administrator
 */
@RestController
@RequestMapping("/wx/notReturn")
public class WxRentNotReturnController {
    @Autowired
    private WxRentNotReturnService wxRentNotReturnService;

    @PostMapping("/submit")
    public Object  submit(@LoginUser Integer userId, @RequestBody RentNotReturnDto rentNotReturnDto) {
        return wxRentNotReturnService.submit(userId, rentNotReturnDto);

    }
    @GetMapping("/detail")
    public Object detail(@LoginUser Integer userId,@RequestParam Integer rentOrderId){

        return null;
    }
}
